Example: Hide the Shutdown option from the Start Menu
The Policy CSP contains the vast majority of the smaller settings that you may want to configure on a device. There are a lot of settings under there, but once you understand how to build the URI, most settings are actually pretty straightforward to configure.
This example focuses on configuring a sub-element of the Policy CSP. This example is a little more complicated because of the way the Policy CSP is structured. For this example, there are two pages you need to use:
In this example we build a custom profile that hides the Shutdown option from the MS Windows Start menu. Next, we test this profile by applying it to a local device and then verify the results.
To hide the Shutdown option from the Start menu on the target device:
- Select the Libraries tab in top navigation.
- Click the Custom Profiles icon.
- Choose Add New > Configuration Profile.
- In the Add New Custom Profile view that appears, in the Name field, type Hide Shutdown from Start Menu.
- Add a step to hide the Shutdown option.
- Click Add New Configuration.
- In the Name field, type Hide Shutdown Option.
- Assemble the URI for this step.
The main thing to understand here is that the Policy CSP - Start page under Policy CSP is a continuation of the main Policy CSP page. This means that we need to look at the main page first to get the root node for the URI. When you find the root node, notice that the page goes on to describe configuring verses retrieving the values. In our case, we want the Config portion as well since we are setting a value.

NOTE: KACE Cloud understands how to retrieve the values for things you configure. Always use the Config option for Policy CSP settings.
- From the Policy CSP page, copy the root node for configuring settings and paste it into the OMA-URI field:
./Device/Vendor/MSFT/Policy/Config
- Get rest of the URI from the Policy CSP - Start page. To do that, scroll down to the Start/HideShutDown section. The name of the node is the rest of the URI.
- Append the setting name to the OMA-URI field so that it looks like the following:
./Device/Vendor/MSFT/Policy/Config/Start/HideShutDown
- From the Policy CSP page, copy the root node for configuring settings and paste it into the OMA-URI field:
- Click Data Type and select Integer from the list.
This is because the data value that we want to assign is a whole number.
- In the Data Value field, type 1 to hide the Shutdown option, based on the documentation.
- Save changes to this custom profile and apply them to your target device.
If successful, you will confirm that the Shutdown option on the Windows Start menu is no longer available on the target device. You can create another profile with a value of 0 to turn it back on.
|
|
NOTE: If you encounter an error after applying a custom profile, review the log details in the Event Viewer on the device, under Applications and Services Logs > Microsoft > Windows > DeviceManagement-Enterprise-Diagnostics-Provider > Admin. |